//数组练习
import java.util.Scanner;
public class array {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);

        System.out.print("请输入数组大小（整数）: ");
        int size = reader.nextInt();

        int a[] = new int[size];

        System.out.println("请输入数组元素值:");
        for (int i = 0; i < size; i++) {
            System.out.print("元素 " + (i + 1) + ": ");
            a[i] = reader.nextInt();
        }

        System.out.println("数组元素个数: " + a.length);

        System.out.println("数组元素:");
        for (int i = 0; i < size; i++) {
            System.out.println("元素 " + (i + 1) + ": " + a[i]);
        }
    }
}
